import { Body, Controller, Inject, Post } from '@nestjs/common';
import { UserService } from './user.service';
import { RegisterVo } from './dto/RegisterVo';

@Controller('user')
export class UserController {
  @Inject(UserService)
  private userServer: UserService;

  @Post('register')
  register(@Body() user: RegisterVo) {
    return this.userServer.create(user);
  }
}
